<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: WuLiangHang
  Date: 2021/12/20
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:set scope="request" var="score" value="75"/>
<c:choose>
    <c:when test="${requestScope.score <= 100 && requestScope.score >= 90}">
        <h1>A</h1>
    </c:when>
    <c:when test="${requestScope.score <= 89 && requestScope.score >= 80}">
        <h1>B</h1>
    </c:when>
    <c:when test="${requestScope.score <= 79 && requestScope.score >= 70}">
        <h1>C</h1>
    </c:when>
    <c:when test="${requestScope.score <= 69 && requestScope.score >= 60}">
        <h1>D</h1>
    </c:when>
    <c:when test="${requestScope.score <= 59 && requestScope.score >= 0}">
        <h1>不及格</h1>
    </c:when>
    <c:otherwise>
        <h1>分数范围不合法</h1>
    </c:otherwise>
</c:choose>
</body>
</html>
